package com.dmj.sqldsl.builder;

import com.dmj.sqldsl.builder.column.LambdaColumnBuilder;
import com.dmj.sqldsl.builder.column.ValueColumnBuilder;
import com.dmj.sqldsl.builder.config.EntityConfig;
import com.dmj.sqldsl.model.Set;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public class SetBuilder {

  private final LambdaColumnBuilder<?, ?> left;
  private final ValueColumnBuilder<?, ?> right;

  public Set build(EntityConfig config) {
    return new Set(left.build(config), right.build(config));
  }
}
